import 'package:json_annotation/json_annotation.dart';
import 'package:gzmall_app/model/avatar.dart';

part 'head_line.g.dart';

@JsonSerializable()
class HeadLine extends Object {
  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'type')
  String type;

  @JsonKey(name: 'page')
  String page;

  @JsonKey(name: 'items')
  List<Avatar> items;

  @JsonKey(name: 'params')
  String params;

  HeadLine(
    this.name,
    this.type,
    this.page,
    this.items,
    this.params,
  );

  factory HeadLine.fromJson(Map<String, dynamic> srcJson) =>
      _$HeadLineFromJson(srcJson);
}
